package iD220711010131;

import java.time.LocalDate;
import java.util.Scanner;

public class HuangJiaLe05 {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入要查询的年份");
        int year = sc.nextInt();
        LocalDate ld1 = LocalDate.of(year, 3, 1);
        LocalDate ld2 = ld1.plusDays(-1);
        System.out.println(year + "年的2月份天数为：" + ld2.getDayOfMonth() + "天");

    }

}
